doctype html
html.no-focus lang='en'
  head
    title = @html_title || '登录系统'
    meta charset='utf-8'
    meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'
    meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'
    meta name='renderer' content='webkit'
    meta http-equiv='cleartype' content='on'
    meta name='HandheldFriendly' content='True'
    meta name='MobileOptimized' content='320'
    - if content_for?(:title)
      = yield(:title)
    - else
      title Xyy System
    = csrf_meta_tags
    = content_for?(:head) ? yield(:head) : ''
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
    = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
    = favicon_link_tag 'favicon.ico'

  body
    .content.overflow-hidden
      .row
        .col-sm-8.col-sm-offset-2.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
          = yield
  #page-loader
javascript:
  show_notice(#{flash[:notice].to_json.html_safe})
  error_notice(#{flash[:error].to_json.html_safe})